package BinaryTree;
/*
* 二叉树的镜像
* */
public class Offer27mirrorTree {
    public TreeNode mirrorTree(TreeNode root) {
        if(root==null){
            return null;
        }
        mirrorTree(root.right);
        mirrorTree(root.left);
        TreeNode tmp=root.left;
        root.left=root.right;
        root.right=tmp;
        return root;
    }
}
